/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.project.entity.projectformrelation;

import org.hibernate.validator.constraints.Length;

import com.idenger.common.persistence.DataEntity;

/**
 * 项目表单关系Entity
 * @author chenlin
 * @version 2018-04-11
 */
public class ProjectFormRelation extends DataEntity<ProjectFormRelation> {
	
	private static final long serialVersionUID = 1L;
	private String projectId;		// 项目ID
	private String tableId;		// 表的ID
	private String tableOrder;		// 排序
	private String sourceRemarks;		// 数据源备注
	private String deleteFlag;		// 删除标记
	
	public ProjectFormRelation() {
		super();
	}

	public ProjectFormRelation(String id){
		super(id);
	}

	@Length(min=0, max=64, message="项目ID长度必须介于 0 和 64 之间")
	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}
	
	@Length(min=0, max=64, message="表的ID长度必须介于 0 和 64 之间")
	public String getTableId() {
		return tableId;
	}

	public void setTableId(String tableId) {
		this.tableId = tableId;
	}
	
	@Length(min=0, max=2, message="排序长度必须介于 0 和 2 之间")
	public String getTableOrder() {
		return tableOrder;
	}

	public void setTableOrder(String tableOrder) {
		this.tableOrder = tableOrder;
	}
	
	@Length(min=0, max=255, message="数据源备注长度必须介于 0 和 255 之间")
	public String getSourceRemarks() {
		return sourceRemarks;
	}

	public void setSourceRemarks(String sourceRemarks) {
		this.sourceRemarks = sourceRemarks;
	}
	
	@Length(min=0, max=1, message="删除标记长度必须介于 0 和 1 之间")
	public String getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	
}